<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

?>
<?php
if ($exist = $block->getRecentlyComparedProducts()) {
    $type = 'widget-compared';

    $image = 'recently_compared_products_images_only_widget';
    $title = __('Recently Compared');
    $items = $exist;

    $showWishlist = false;
    $showCompare = false;
    $showCart = false;
    $rating = false;
    $description = false;
}
?>
<?php if ($exist): ?>
<div class="block widget block-compared-products-images">
    <div class="block-title">
        <strong><?php /* @escapeNotVerified */ echo $title; ?></strong>
    </div>
    <div class="block-content">
        <?php $suffix = $block->getNameInLayout(); ?>
        <ol id="widget-compared-<?php /* @escapeNotVerified */ echo $suffix; ?>" class="product-items product-items-images">
        <?php $i = 0; foreach ($items as $_product): ?>
            <li class="product-item">
                <a class="product-item-photo" href="<?php /* @escapeNotVerified */ echo $_product->getProductUrl() ?>"
                    title="<?php /* @escapeNotVerified */ echo $block->stripTags($_product->getName(), null, true) ?>">
                    <?php echo $block->getImage($_product, $image)->toHtml(); ?>
                </a>
            </li>
        <?php endforeach; ?>
        </ol>
    </div>
</div>
<?php endif; ?>
